package cn.imvc.app.models;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.web.util.matcher.RequestMatcher;

import cn.imvc.app.entities.UserSeller;
import cn.imvc.data.domain.ViewRequest;

public interface UserSellerModel {
LinkedHashMap<RequestMatcher, Collection<ConfigAttribute>> getRequestMap();
	
	Page<UserSeller> find(ViewRequest viewRequest);
	
	UserSeller get(int id);

	UserSeller save(UserSeller userSeller);
	
	UserSeller update(int id, UserSeller userSeller);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	List<UserSeller> findByUserId(int userId);

	Page<Object[]> findObjectPage(int sellerId,ViewRequest viewRequest);
	
	List<UserSeller> getUserSellersByCurUser();
}
